/**
 *  RegisterLocation.java : IceBird project
 *  17:15:41 
 */
package icebird.compiler.ncomp.vs;

import icebird.compiler.ncomp.X86Register.GPR;

/**
 * @author Sergey Shulepoff[Knott]
 */
public final class GPRLocation extends Location {
	
	private GPR reg;

	/**
	 * @param name
	 */
	public GPRLocation(GPR reg) {
		super("GPR: " + reg);
		
		this.reg = reg;
	}

	public GPR getGPR() {
		return reg;
	}

	public void setGPR(GPR reg) {
		this.reg = reg;
	}

	/*
	 * (non-Javadoc)
	 * @see icebird.compiler.ncomp.vs.Location#getWeight()
	 */
	public int getWeight() {
		return 2; 
	}
}
